<template>
  <div style="height: 100%; width: 100%">
    <Chart :cdata="cdata" style="height: 100%; width: 100%" @clickBar="clickBar"/>
  </div>
</template>

<script>
import Chart from './chart.vue';
export default {
  data() {
    return {
      cdata: []
    };
  },
  components: {
    Chart
  },
  methods: {
    clickBar(p) {
      console.log('flcz-index');
      this.$emit('clickBar', p);
    },
    setData(data) {
      this.cdata = data;
    }
  }
};
</script>

<style lang="less" scoped></style>
